package com.mszlu.blog.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mszlu.blog.admin.common.Result;
import com.mszlu.blog.admin.entity.Admin;
import com.mszlu.blog.admin.entity.Permission;
import com.mszlu.blog.admin.entity.params.PageParam;

import java.util.List;

public interface AdminService extends IService<Admin> {

    Admin findAdminByUserName(String username);

    List<Permission> findPermissionByAdminId(Long id);

    Result userList(PageParam pageParam);

    Result editPasswordByUserName(Admin admin);

    Result addAdmin(Admin admin);
}
